﻿
namespace Forex.Components.Data
{
	public class FileDataFactory : DataFactory
	{
		#region Singleton implementation

		FileDataFactory()
		{
		}

		public static FileDataFactory Instance()
		{
			return Nested.instance;
		}

		class Nested
		{
			// Explicit static constructor to tell C# compiler
			// not to mark type as beforeFieldInit
			static Nested()
			{
			}

			internal static readonly FileDataFactory instance = new FileDataFactory();
		}

		#endregion Singleton implementation

		public override ITickIntervalData CreateTickIntervalDate()
		{
			return new FileTickIntervalData();
		}
	}
}
